//
//  CXTabBar.h
//  喜马拉雅FM
//
//  Created by hcios on 2017/8/26.
//  Copyright © 2017年 hcios. All rights reserved.
//

#import <UIKit/UIKit.h>

@class CXTabBarItem, CXTabBar;

@protocol CXTabBarDelegate <NSObject>

-(void)tabBar:(CXTabBar *)tabBar tabBarIndex:(NSInteger)index;

@end

@interface CXTabBar : UITabBar

@property (nonatomic, weak) id<CXTabBarDelegate>delegate;

+(instancetype)tabBarWithFrame:(CGRect)frame items:(NSArray<CXTabBarItem *> *)items;

-(instancetype)initWithFrame:(CGRect)frame items:(NSArray<CXTabBarItem *> *)items;

@end
